<template>
  <div class="container w-50 m-auto mt-5">
    <div class="main-body">
      <div class="row gutters-sm">
        <div class="card mb-3">
          <div class="card-body">
            <div class="row">
              <div class="col-sm-3">
                <h6 class="mb-0">Имя</h6>
              </div>
              <div class="col-sm-9 text-secondary">{{ user.name }}</div>
            </div>
            <hr />
            <div class="row">
              <div class="col-sm-3">
                <h6 class="mb-0">Email</h6>
              </div>
              <div class="col-sm-9 text-secondary">{{ user.email }}</div>
            </div>
            <hr />
            <div class="row">
              <div class="col-sm-3">
                <h6 class="mb-0">Организация</h6>
              </div>
              <div class="col-sm-9 text-secondary">
                {{ user.organization.name }}
              </div>
            </div>
            <hr />
            <div class="row">
              <div class="col-sm-3">
                <h6 class="mb-0">ИНН</h6>
              </div>
              <div class="col-sm-9 text-secondary">
                {{ user.organization.inn }}
              </div>
            </div>
            <hr />
            <div class="row">
              <div class="col-sm-3">
                <h6 class="mb-0">Роль</h6>
              </div>
              <div class="col-sm-9 text-secondary user-select-all">
                {{ user.role }}
              </div>
            </div>
            <hr />
            <div class="row">
              <div class="col-sm-3">
                <h6 class="mb-0">Текущий токен</h6>
              </div>
              <div class="col-sm-9 text-secondary user-select-all">
                {{ tokens.access_token }}
              </div>
            </div>
            <!-- <hr />
              <div class="row">
                <div class="col-sm-12">
                  <button class="btn btn-info">Изменить</button>
                </div>
              </div> -->
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    user: Object,
    tokens: Object,
  },
};
</script>

<style>
</style>